﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;

namespace IFIGame
{
    public class Obstacle 
    {
        //attributs
        protected int x;
        protected int y;
        protected Rectangle rectangle;
        protected int width;
        protected int height;

        //constructeurs
        public Obstacle()
        {
            // TODO: Construct any child components here
        }

        public Obstacle(int _x, int _y, int _width, int _height)
        {
            // TODO: Construct any child components here
            this.x = _x;
            this.y = _y;
            this.width = _width;
            this.height = _height;
            this.rectangle = new Rectangle(_x, _y, _width, _height);
        }

        // Accesseurs
        public int getX()
        {
            return this.x;
        }
        public int getY()
        {
            return this.y;
        }

        public Rectangle getRectangle()
        {
            return this.rectangle;
        }

        public int getWidth()
        {
            return this.width;
        }

        public int getHeight()
        {
            return this.height;
        }

        //mutateurs
        public void setX(int _x)
        {
            this.x = _x;
        }

        public void setY(int _y)
        {
            this.y = _y;
        }
        public void setRectangle(Rectangle _rectangle)
        {
            this.rectangle = _rectangle;
        }
        public void setWidth(int _width)
        {
            this.width = _width;
        }

        public void setHeight(int _height)
        {
            this.height = _height;
        }
    }
}
